<cfparam name="dir" default="/">
<cfparam name="filepath" default="">
<cffile action = "upload" filefield="fileData" destination = "#filepath##dir#" nameconflict="makeunique" mode="777">
<cfinvoke component="cfcs.common.shared" method="renamefile" inputfile="#cffile.serverfile#" dir="/images#dir#" returnvariable="thefile">